package com.bw;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "kudingyu")
public class Customer2 {
    @RabbitHandler
    public void getmessage(String message){

        System.out.println("kudingyu监听到消息"+message);
    }
}
